<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     template="../../Template.xhtml"
>
<ui:define name="title"></ui:define>
<ui:define name="body">

<script>


</script>

<h:form>


    <p:tabView>
        <p:tab title="private Shippers">
           <p:panelGrid columns="2">

<h2>private Shippers</h2>
<p:commandButton ajax="false" value="Add New" action="#{priceStrategieMB.addredirect('1','1')}" />
   
	</p:panelGrid>
	<br/><br/><br/><br/>
	<p:dataTable  var="car" value="#{priceStrategieMB.listeCataloguePrix(1,1)}" rows="10"
	                         paginator="true"
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                         rowsPerPageTemplate="5,10,15" >
      
        <p:column headerText="Id">
            <h:outputText value="#{car.idStaretegie}" />
        </p:column>
        <p:column headerText="Amount Interval">
        
             <h:outputText value="#{car.intervalle_prix}" />
       </p:column>
        <p:column headerText="Rate %">
              <h:outputText value="#{car.taux}" />
      
        </p:column>
        
           <p:column headerText="Prepaid %">
              <h:outputText value="#{car.commission}" />
      
        </p:column>
        
        <p:column headerText="Status %">
              <h:outputText value="#{car.statut}" />
      
        </p:column>
        
        <p:column style="width:32px;text-align: center">
             
             <p:commandButton ajax="false" action="#{priceStrategieMB.edit(car.idStaretegie)}" icon="ui-icon ui-icon-pencil">
            </p:commandButton>
            <p:commandButton ajax="false" action="#{priceStrategieMB.Supprimer(car.idStaretegie)}" icon="ui-icon ui-icon-close">
            </p:commandButton>
         </p:column>
      
        
    </p:dataTable>




        </p:tab>
        <p:tab title="Professional Shippers">
          
          
                     <p:panelGrid columns="2">

<h2>Professional Shippers</h2>
<p:commandButton ajax="false" value="Add New" action="#{priceStrategieMB.addredirect('2','1')}" />
   
	</p:panelGrid>
	<br/><br/><br/><br/>
	<p:dataTable  var="car" value="#{priceStrategieMB.listeCataloguePrix(1,2)}" rows="10"
	                         paginator="true"
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                         rowsPerPageTemplate="5,10,15" >
      
        <p:column headerText="Id">
            <h:outputText value="#{car.idStaretegie}" />
        </p:column>
        <p:column headerText="Amount Interval">
        
             <h:outputText value="#{car.intervalle_prix}" />
       </p:column>
        <p:column headerText="Rate %">
              <h:outputText value="#{car.taux}" />
      
        </p:column>
        
           <p:column headerText="Prepaid %">
              <h:outputText value="#{car.commission}" />
      
        </p:column>
        
        <p:column headerText="Status %">
              <h:outputText value="#{car.statut}" />
      
        </p:column>
        
        <p:column style="width:32px;text-align: center">
             
             <p:commandButton ajax="false" action="#{priceStrategieMB.edit(car.idStaretegie)}" icon="ui-icon ui-icon-pencil">
            </p:commandButton>
            <p:commandButton ajax="false" action="#{priceStrategieMB.Supprimer(car.idStaretegie)}" icon="ui-icon ui-icon-close">
            </p:commandButton>
         </p:column>
      
        
    </p:dataTable>


          
          
          
          
        </p:tab>

         <p:tab title="Private Carriers">
            
                       <p:panelGrid columns="2">

<h2>private Carriers</h2>
<p:commandButton ajax="false" value="Add New" action="#{priceStrategieMB.addredirect('3','1')}" />
   
	</p:panelGrid>
	<br/><br/><br/><br/>
	<p:dataTable  var="car" value="#{priceStrategieMB.listeCataloguePrix(1,3)}" rows="10"
	                         paginator="true"
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                         rowsPerPageTemplate="5,10,15" >
      
        <p:column headerText="Id">
            <h:outputText value="#{car.idStaretegie}" />
        </p:column>
        <p:column headerText="Amount Interval">
        
             <h:outputText value="#{car.intervalle_prix}" />
       </p:column>
        <p:column headerText="Rate %">
              <h:outputText value="#{car.taux}" />
      
        </p:column>
        
           <p:column headerText="Prepaid %">
              <h:outputText value="#{car.commission}" />
      
        </p:column>
        
        <p:column headerText="Status %">
              <h:outputText value="#{car.statut}" />
      
        </p:column>
        
        <p:column style="width:32px;text-align: center">
             
             <p:commandButton ajax="false" action="#{priceStrategieMB.edit(car.idStaretegie)}" icon="ui-icon ui-icon-pencil">
            </p:commandButton>
            <p:commandButton ajax="false" action="#{priceStrategieMB.Supprimer(car.idStaretegie)}" icon="ui-icon ui-icon-close">
            </p:commandButton>
         </p:column>
      
        
    </p:dataTable>


            
            
            
        </p:tab>
         <p:tab title="Professional Carriers">
           
                      <p:panelGrid columns="2">

<h2>Professional Carriers</h2>
<p:commandButton ajax="false" value="Add New" action="#{priceStrategieMB.addredirect('4','1')}" />
   
	</p:panelGrid>
	<br/><br/><br/><br/>
	<p:dataTable  var="car" value="#{priceStrategieMB.listeCataloguePrix(1,4)}" rows="10"
	                         paginator="true"
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                         rowsPerPageTemplate="5,10,15" >
      
        <p:column headerText="Id">
            <h:outputText value="#{car.idStaretegie}" />
        </p:column>
        <p:column headerText="Amount Interval">
        
             <h:outputText value="#{car.intervalle_prix}" />
       </p:column>
        <p:column headerText="Rate %">
              <h:outputText value="#{car.taux}" />
      
        </p:column>
        
           <p:column headerText="Prepaid %">
              <h:outputText value="#{car.commission}" />
      
        </p:column>
        
        <p:column headerText="Status %">
              <h:outputText value="#{car.statut}" />
      
        </p:column>
        
        <p:column style="width:32px;text-align: center">
             
             <p:commandButton ajax="false" action="#{priceStrategieMB.edit(car.idStaretegie)}" icon="ui-icon ui-icon-pencil">
            </p:commandButton>
            <p:commandButton ajax="false" action="#{priceStrategieMB.Supprimer(car.idStaretegie)}" icon="ui-icon ui-icon-close">
            </p:commandButton>
         </p:column>
      
        
    </p:dataTable>


           
           
        </p:tab>
        <p:tab title="Permanent Professional Shippers/Carriers">
           
           
                      <p:panelGrid columns="2">

<h2>Permanent Professional Shippers/Carriers (Periodic Fee) </h2>
<p:commandButton ajax="false" value="Add New" action="#{priceStrategieMB.addredirect('0','2')}" />
   
	</p:panelGrid>
	<br/><br/><br/><br/>
	<p:dataTable  var="car" value="#{priceStrategieMB.listeCataloguePrix(2,0)}" rows="10"
	                         paginator="true"
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                         rowsPerPageTemplate="5,10,15" >
      
        <p:column headerText="Id">
            <h:outputText value="#{car.idStaretegie}" />
        </p:column>
        <p:column headerText="Periods">
        
             <h:outputText value="#{car.nbrPeriode}#{car.periode}" />
       </p:column>
        <p:column headerText="Periodic Fee">
              <h:outputText value="#{car.prix}" />
      
        </p:column>
        
         <p:column headerText="Maximum nember of shippements">
         
              <h:outputText value="#{car.nbrMaxVoyage}" />
      
        </p:column>
        
        <p:column headerText="Status ">
              <h:outputText value="#{car.statut}" />
      
        </p:column>
        
        <p:column style="width:32px;text-align: center">
             
             <p:commandButton ajax="false" action="#{priceStrategieMB.edit(car.idStaretegie)}" icon="ui-icon ui-icon-pencil">
            </p:commandButton>
            <p:commandButton ajax="false" action="#{priceStrategieMB.Supprimer(car.idStaretegie)}" icon="ui-icon ui-icon-close">
            </p:commandButton>
         </p:column>
      
        
    </p:dataTable>
           
           
        </p:tab>
    </p:tabView>
</h:form>


</ui:define>

</ui:composition>